import storage, { EStorage } from '@/core/storage';

/** 根据歌曲id获取.mp3文件 */
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const getMp3UrlById = (id: string) => id ? `https://music.163.com/song/media/outer/url?id=${id}.mp3` : ''


/** 初始化系统颜色 */
export const initSystemColor = (): void => {
  const color = storage.get(EStorage.primaryColor) || 'blue';
  storage.set(EStorage.primaryColor,color);
  document.documentElement.setAttribute('system-color',color)
}